﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Cn.Edwon.Web.Support;
using Cn.Cellula.Biz.Port;
using Cn.Edwon.Spring;
using System.Reflection;
using Cn.Edwon.Web;
using Cn.Cellula.Client;

namespace Cn.Cellula.Website.Admin.Product {
    public partial class AddCaSelect : PageSupport {
        IProductBiz biz = BizFactory.Get<IProductBiz>();
        ProductEditBiz peb = new ProductEditBiz();
        protected void Page_Load(object sender, EventArgs e) {
            peb.ClearFlow(Session);
        }

        protected void btn_Save_Click(object sender, EventArgs e) {
            if (String.IsNullOrEmpty(this.hid_CategoryId.Value)) {
                SiteInfo.Send(Page, "错误", "请选择一个产品分类");
                return;
            }
            ProductActor pa = new ProductActor();
            pa.ProductKey = null;
            pa.CategoryKey = this.hid_CategoryId.Value;
            peb.PushFlow(Session, pa);
            peb.GoNext(Request, Response);
        }
    }
}
